package com.itheima.collection;

import java.util.Arrays;

/**
 * @author Anomaly
 * @date 2023/1/20 17:16
 */
public class ParamsDemo {
    public static void main(String[] args) {
        sum();
        sum(10);
        sum(1, 2, 3);
        sum(new int[]{4, 5, 6});
    }

    public static void sum(int... num) {
        System.out.println(Arrays.toString(num));
        System.out.println("len: " + num.length);
        System.out.println("---------------");
    }
}
